import React, { Component } from 'react';

import "../index.css";

class Toast extends Component {
  constructor(props) {
    super(props);
    this.state = {
      show: false,
    }


  };


  render() {
    const { text } = this.props;
    return (
      <div>
        {
          text ?
            <div className="toast">
              <span>{text}</span>
            </div>
            : null
        }

      </div>
    );
  }
}

export default Toast;
